﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace CompanyHubServer.DAL
{
    public class HubContextInitializer : DropCreateDatabaseIfModelChanges<HubContext>
    {
        protected override void Seed(HubContext context)
        {
            return;

            context.Packages.Add(new Models.Package()
            {
                PackageId = Guid.NewGuid(),
                Title = "Test Hub",
                Description = "test desc",
                IsActive = true,
                IsCompanyHub = true,
                SourceUri = "textapp.xap",
                Version = "1.0.0.0",
                UpdatedDT = DateTime.Now
            });

            context.AppTokens.Add(new Models.AppToken()
            {
                Id = 1,
                SourceUri = "test.aetx",
                UploadedDT = DateTime.Now,
                Expires = new DateTime(2015,1,1), 
                IsActive = true
            });
        }
    }
}